<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>微博报-我的头条</title>
<link href="<?php echo base_url();?>public/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    //each遍历文本框
    $(":text").each(function() {
        //保存当前文本框的值
		$(this).css({"font-family":"Arial","font-size":"15px"})
        var vdefault = this.value;
        $(this).focus(function() {
            //获得焦点时，如果值为默认值，则设置为空
            if (this.value == vdefault) {
                this.value = "";
            }
        });
        $(this).blur(function() {
            //失去焦点时，如果值为空，则设置为默认值
            if (this.value == "") {
                this.value = vdefault;
            }
        });
    });});
</script>
</head>

<body>
    <div id="container"><!--页面层容器-->
        <div id="header"><!--页面头部-->
            <div id="log1"><img src="<?php echo base_url();?>public/images/weibo_03.gif"/></div>
            <div id="userhead"><!--头像-->
            <a href="<?= 'http://weibo.com/u/'.(string)$uid_me ?>"><img src="<?=$user_message['profile_image_url']?>" height="30" width="30"/></a>
            </div>	
        </div>
        <div id="pagebody"><!--页面主题-->
            <div id="topbar"><!--上边栏-->

            <form id="headform" name="myheader" method="post" action="">
            <input id="textfield" type="text"  name="text" value= '俗话说："独乐乐不如众乐乐"分享你的头条让大家都乐乐吧' />
            <input id="headbutton" type="submit"  name="headbutton" value="" />
            </form>
            <?php
           /* if( isset($_REQUEST['text']) ) 
            {
                $ret = $c->update( $_REQUEST['text'] );	//发送微博
                if ( isset($ret['error_code']) && $ret['error_code'] > 0 )
                {
                    echo "<p>发送失败，错误：{$ret['error_code']}:{$ret['error']}</p>";
                }
                else 
                    echo "<p>发送成功</p>";
            }*/
            ?>
            </div>
            <div id="mainbody" ><!--主题内容-->
            <ol >
            <?php foreach( $weibo as $item ): ?>
                  <li >
                      <dl>
                          <dt class="face">
                                <a target='_blank' href="<?='http://weibo.com/u/'.(string)$item['uid']?>"><img  style="width:30px; height:30px"  src="<?=$item['img_url']?>" /></a>
                          </dt>
                          <dd class="content">
                                <a target='_blank' style="color:#2D96BE ;text-decoration:none"  href="<?='http://weibo.com/u/'.(string)$item['uid']?>">
                                            <span><?=$item['screen_name']?></span></a>:<?=$item['weibo_text'];?>
                                                <?php if( ! empty($item['retweeted_uid'])): ?><!--如果非原创微博，则显示原微博-->
                                                        <div class="pageinformation1" ><!--原微博信息--><a id="astyle"  href="<?='http://weibo.com/u/'.(string)$item['retweeted_uid']?>" target='_blank'>
                                                            <span><?=$item['retweeted_screen_name']?></span></a>:<?=$item['retweeted_txt'];?>
                                                        </div>
                                                <?php endif; ?>
                          </dd>                  
                          <p id="datastyle"><?php 
                                                               $time=strtotime($item['created_at']);
                                                               echo date("m",$time)."月".date("d",$time)."日&nbsp".date("H",$time).":".date("m",$time); 
                                                              ?>
                          </p>
                          <dd class="clear"></dd>
                      </dl>
                    </li>
            <?php endforeach; ?>
                </ol>   
        <div id="footer"><!--页面底部-->
            <div class="copyright"><!--底部版权-->
                <p>Copyright@2012智梦创科科技有限公司<br/>京网文[2011]0398-130号&nbsp;京ICP证100780号</p>
            </div>
            <div><!--底部图片--><img  src="<?php echo base_url();?>public/images/11.gif" /></div>
        </div>
</div>
 </div>
</div>
    
 <?php 
    /*if( is_array( $mutual_fans) )
    {
        echo $mutual_fans['total_number']; 
        foreach ($mutual_fans['ids'] as $item)
        {
            echo $item.'&nbsp'.'<br/>';   //输出互粉用户的ID
            $temp=$c->show_user_by_id($item);
            $temp_info=$temp['status']['text'];
            echo $temp_info.'&nbsp'.'<br/>';
            echo $temp['screen_name'].'<br/>';
            //echo var_dump($temp_info).'<br/><br/>';
            
        }
    }*/
    /*foreach ($u_m as $item)
    {
        echo $item['uid'].'&nbsp &nbsp';
        echo $item['screen_name'].'&nbsp &nbsp';
        echo '<br/>';
    } */
    //echo $u_m['location'];
   // echo (date("Y-m-d",strtotime("Fri Apr 13 18:20:15 +0800 2012"))).'<br/>';
    //echo "Done！";
    ?>  
</body>
</html>